//
//  TimeUtils.h
//  Molian
//
//  Created by wan song on 16/12/14.
//  Copyright (c) 2014 memeda. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    CONSTELLATION_MOJIE = 0,
    CONSTELLATION_SHUIPING = 1,
    CONSTELLATION_SHUANGYU = 2,
    CONSTELLATION_BAIYANG = 3,
    CONSTELLATION_JINGNIU = 4,
    CONSTELLATION_SHUANGZI = 5,
    CONSTELLATION_JUXIE = 6,
    CONSTELLATION_SHIZI = 7,
    CONSTELLATION_CHUNV = 8,
    CONSTELLATION_TIANCHENG = 9,
    CONSTELLATION_TIANXIE = 10,
    CONSTELLATION_SHESHOU = 11,
}CONSTELLATIONS;

@interface TimeUtils : NSObject

+ (NSString*)getConstellationWithDate:(NSDate*)date;
+ (NSInteger)getConstellationIdWithDate:(NSDate*)date;
+ (NSString*)getConstellationWithId:(NSInteger)constellationId;
+ (NSUInteger)getAgeFromDate:(NSDate*)date;
+ (NSUInteger)getPastMinuteWithDate:(NSDate*)date;
+ (NSString*)getPastTimeWithDate:(NSDate*)date;

@end
